#!/usr/bin/env bash

# 安装 Docker
curl -sSL https://get.daocloud.io/docker | sh

# 配置加速器
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io

sudo systemctl daemon-reload
sudo systemctl restart docker

# 安装 Docker Compose
curl -L https://get.daocloud.io/docker/compose/releases/download/1.28.5/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose